#! /bin/sh -e

for proc in /proc/[0-9]*; do
  [ -x $proc/exe ] || continue
  if [ "$(readlink $proc/exe)" = /sbin/udevd ]; then
    # errors must be ignored due to a race with udevd child processes
    # naturally terminating
    kill ${proc#/proc/} 2> /dev/null || true
  fi
done
